package com.xlhj.boot.service;

import com.aliyun.odps.OdpsException;
import com.aliyun.odps.data.ResultSet;
import com.aliyun.odps.tunnel.InstanceTunnel;

import java.io.IOException;

/**
 * @author: liucaijing
 * @description: MaxComputeService
 * @date: 2021/6/17 16:38
 */
public interface MaxComputeService {

    void getMaxComputeData();

    void getMoreMaxComputeData();

    void getMoreMaxComputeDataForTask();

    void runSqlTask();

    void dowloadData();

    void getMoreMaxComputeDataForInstance();

    void uploadData();

    /**
     * 根据权限查询数据详情
     * @return
     * @throws OdpsException
     * @throws IOException
     */
    ResultSet getDataAssetDetail() throws OdpsException, IOException;

    /**
     * 获取表结构--列信息
     * @return
     * @throws OdpsException
     * @throws IOException
     */
    InstanceTunnel.DownloadSession getBatchDataInfo(String tableName) throws OdpsException, IOException;

    void getBatchDataInfoForThread(String tableName) throws OdpsException;
    List<Column> getTableColumn() throws OdpsException, IOException;
}
